package com.zenithsun.pic.picsubject.model;

import java.util.Date;
import java.util.Set;

import com.zenithsun.pic.picdetail.model.Picdetail;

/**
 * Picsubject entity. @author MyEclipse Persistence Tools
 */

public class Picsubject implements java.io.Serializable {

	// Fields

	private String id;
	private String name;
	private String keyword;
	private String remark;
	private Date createTime;
	private String createUserId;
	private String creator;
	private String type;
	private String coverId;
	private Picdetail picdetail;
	private int picNum;
	private int allowShare=0;//允许分享
	private int allowDown=0;//允许下载
	private int view=0;//浏览量
	private int down=0;//下载量
	// Constructors

	/** default constructor */
	public Picsubject() {
	}

	/** minimal constructor */
	public Picsubject(String id, String name, String keyword, Date createTime,
			String createUserId) {
		this.id = id;
		this.name = name;
		this.keyword = keyword;
		this.createTime = createTime;
		this.createUserId = createUserId;
	}

	/** full constructor */
	public Picsubject(String id, String name, String keyword, String remark,
			Date createTime, String createUserId, String type, Set picdetails) {
		this.id = id;
		this.name = name;
		this.keyword = keyword;
		this.remark = remark;
		this.createTime = createTime;
		this.createUserId = createUserId;
		this.type = type;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getKeyword() {
		return this.keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCoverId() {
		return coverId;
	}

	public void setCoverId(String coverId) {
		this.coverId = coverId;
	}

	public Picdetail getPicdetail() {
		return picdetail;
	}

	public void setPicdetail(Picdetail picdetail) {
		this.picdetail = picdetail;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public int getPicNum() {
		return picNum;
	}

	public void setPicNum(int picNum) {
		this.picNum = picNum;
	}
	public int getAllowShare() {
		return allowShare;
	}

	public void setAllowShare(int allowShare) {
		this.allowShare = allowShare;
	}

	public int getAllowDown() {
		return allowDown;
	}

	public void setAllowDown(int allowDown) {
		this.allowDown = allowDown;
	}

	public int getView() {
		return view;
	}

	public void setView(int view) {
		this.view = view;
	}

	public int getDown() {
		return down;
	}

	public void setDown(int down) {
		this.down = down;
	}
	
}